Let's add our hoop!

  • Go to the section of the toolkit and drag Basketball Net to the bottom of your program.
  • Change the name before the equals sign to net.

Each sprite needs its own name. The sprite's name is the orange word before the equals sign.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("halfcourt") sprite = codesters.Sprite("player4") sprite.go_to(215, -175)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)